package com.hgsoft.excel.annotation;

import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;

/**
 * BeanUtils
 *
 * @author fanglong
 * @date 2016/7/15
 */
public class BeanUtils {

    public static List<Field> getFields(Object d) {
        if (d == null) {
            return null;
        }
        Class clazz = d.getClass();
        Field [] fields = clazz.getFields();
        return Arrays.asList(fields);
    }
}
